* ============================================================== * 
* Date : December 1, 2019
* Analysis for Conjoint - External Efficacy
* Feodor Snagovsky

* Replication for conjoint experiment found in: 
* Snagovsky, Feodor, Woo Chang Kang, Jillian Sheppard, and Nicholas Biddle. 2020. "Does Descriptive Representation Increase Perceptions of Legitimacy? Evidence from Australia." Australian Journal of Political Science 55 (4): 378–98. doi:10.1080/10361146.2020.1804834.

* ============================================================== * 

* Frontmatter
clear all
set more off
cd "YOUR PATH HERE"
set scheme plottig

* --------------------------------------- * 
* Analysis 
* --------------------------------------- * 

* Load data
use "combined_Q2", clear

******** Overall ********

* Using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad, cl(srcid)
est store acme_overall

* Using candidate party 
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad, cl(srcid)
est store acme_overall_cp



******** By respondent party ID ********

* Coalition identifiers, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if rparty == 1, cl(srcid)
est store acme_rparty_coalition

* Coalition identifiers, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if rparty == 1, cl(srcid)
est store acme_rparty_coalition_cp


* Labor identifiers, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if rparty == 2, cl(srcid)
est store acme_rparty_labor

* Labor identifiers, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if rparty == 2, cl(srcid)
est store acme_rparty_labor_cp


* Other identifiers, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if rparty == 3, cl(srcid)
est store acme_rparty_other

* Other identifiers, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if rparty == 3, cl(srcid)
est store acme_rparty_other_cp



******** By cultural background ********

* Anglo respondents, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "White-Anglo/European", cl(srcid)
est store acme_rculture_anglo

* Anglo respondents, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "White-Anglo/European", cl(srcid)
est store acme_rculture_anglo_cp


* Asian respondents, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "Asian", cl(srcid)
est store acme_rculture_asian

* Anglo respondents, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "Asian", cl(srcid)
est store acme_rculture_asian_cp


* Other respondents, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "Other", cl(srcid)
est store acme_rculture_other

* Anglo respondents, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "Other", cl(srcid)
est store acme_rculture_other_cp



******** By Minority ********

* Anglo respondents, using candidate ideology
quietly xi: reg chosen i.cand_minority i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "White-Anglo/European", cl(srcid)
est store acme_minority_anglo

* Anglo respondents, using candidate party
quietly xi: reg chosen i.cand_minority i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "White-Anglo/European", cl(srcid)
est store acme_minority_anglo_cp


* Minority respondents, using candidate ideology
quietly xi: reg chosen i.cand_minority i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture != "White-Anglo/European", cl(srcid)
est store acme_minority_min

* Minority respondents, using candidate party
quietly xi: reg chosen i.cand_minority i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture != "White-Anglo/European", cl(srcid)
est store acme_minority_min_cp



******** By linked fate ********

* Respondents with linked fate, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if fate_yes == 1, cl(srcid)
est store acme_fate_yes

* Respondents with linked fate, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if fate_yes == 1, cl(srcid)
est store acme_fate_yes_cp

* Respondents with NO linked fate, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if fate_yes == 0, cl(srcid)
est store acme_fate_no

* Respondents with NO linked fate, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if fate_yes == 0, cl(srcid)
est store acme_fate_no_cp



******** By Linked Fate and Culture ********

* Asian respondents with linked fate, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "Asian" & fate_yes == 1, cl(srcid)
est store acme_asian_fateyes

* Asian respondents with linked fate, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "Asian" & fate_yes == 1, cl(srcid)
est store acme_asian_fateyes_cp


* Asian respondents with NO linked fate, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "Asian" & fate_yes == 0, cl(srcid)
est store acme_asian_fateno

* Asian respondents with NO linked fate, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pculture == "Asian" & fate_yes == 0, cl(srcid)
est store acme_asian_fateno_cp



******** By COB ********

* Australian-born respondents, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pcob == "Australian", cl(srcid)
est store acme_rcob_australia

* Australian-born respondents, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pcob == "Australian", cl(srcid)
est store acme_rcob_australia_cp


* ESB-born respondents, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pcob == "ESB", cl(srcid)
est store acme_rcob_esb

* ESB-born respondents, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pcob == "ESB", cl(srcid)
est store acme_rcob_esb_cp


* NESB-born respondents, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pcob == "NESB", cl(srcid)
est store acme_rcob_nesb

* NESB-born respondents, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if pcob == "NESB", cl(srcid)
est store acme_rcob_nesb_cp


******** By LOTE ********

* English-only respondents, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if lote_yes == 0, cl(srcid)
est store acme_rlote_eng

* English-only respondents, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if lote_yes == 0, cl(srcid)
est store acme_rlote_eng_cp


* LOTE respondents, using candidate ideology
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_centre_right i.cand_hard_left i.cand_hard_right i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if lote_yes == 1, cl(srcid)
est store acme_rlote_lote

* LOTE respondents, using candidate party
quietly xi: reg chosen i.cand_mideast i.cand_chinese i.cand_indian i.cand_foreignborn i.cand_mandarin i.cand_hindi i.cand_arabic ///
	 i.cand_female i.cand_labor i.cand_extreme i.cand_50_59 i.cand_60_69 i.cand_married i.cand_divorced i.cand_widowed  ///
	 i.cand_non_incumbent i.cand_prev_professional i.cand_prev_agriculture i.cand_prev_party_official i.cand_bach_degree i.cand_postgrad if lote_yes == 1, cl(srcid)
est store acme_rlote_lote_cp





* --------------------------------------- * 
* Graphing 
* --------------------------------------- * 

global acme_opt drop(_cons) xline(0) ///
	xtitle("Percentage Point Change in Probability of Candidate Selection") ///
	headings( ///
	_Icand_fema_1 = "{bf: Gender (Baseline = Male)}" ///
	_Icand_50_5_1 = "{bf: Age (Baseline = 40-49 Years)}" ///
	_Icand_marr_1 =  "{bf: Marriage (Baseline = Single)}" ///
	_Icand_cent_1 =  "{bf: Candidate Ideology (Baseline = Centre-Left)}" ///
	_Icand_fore_1 =  "{bf: Country of Birth (Baseline = Australia)}" ///
	_Icand_mand_1 =  "{bf: Other Languages (Baseline = None)}" ///
	_Icand_mide_1 =  "{bf: Culture (Baseline = Anglo-Australian)}" ///
	_Icand_non__1 =  "{bf: Current Incumbent (Baseline = Incumbent)}" ///
	_Icand_prev_1 =  "{bf: Previous Occupation (Baseline = Lawyer)}" ///
	_Icand_bach_1 =  "{bf: Highest Education (Baseline = High School)}" ///
	_Icand_labo_1 =  "{bf: Political Party (Baseline = Liberal)}" ///
	_Icand_extr_1 =  "{bf: Ideological Orientation (Baseline = Moderate)}" ///
	_Icand_mino_1 =  "{bf: Ethnic Minority Status (Baseline = Anglo-Australian)}" ///
	,labsize(vsmall)) ///	
	coeflabel( ///	
	_Icand_fema_1 = "Female" ///	
	_Icand_50_5_1 = "Aged 50-59 years" ///
	_Icand_60_6_1 = "Aged 60-69 years" /// 
	_Icand_marr_1 = "Married" /// 
	_Icand_divo_1 = "Divorced" /// 
	_Icand_wido_1 = "Widowed" /// 
	_Icand_cent_1 = "Centre-Right" /// 
	_Icand_hard_1 = "Hard-Left" /// 
	_Icand_harda1 = "Hard-Right" /// 
	_Icand_fore_1 = "Not born in Australia" /// 
	_Icand_mand_1 = "Mandarin" /// 
	_Icand_hind_1 = "Hindi" /// 
	_Icand_arab_1 = "Arabic" /// 
	_Icand_mide_1 = "Middle Eastern" /// 
	_Icand_chin_1 = "Chinese" /// 
	_Icand_indi_1 = "Indian" /// 
	_Icand_non__1 = "Non-Incumbent" /// 
	_Icand_prev_1 = "Professional" /// 
	_Icand_preva1 = "Agriculture" /// 
	_Icand_prevb1 = "Party Official" /// 
	_Icand_bach_1 = "Bachelor Degree" /// 
	_Icand_post_1 = "Postgraduate Degree" ///	
	_Icand_labo_1 = "Labor" ///
	_Icand_extr_1 = "Extreme" ///
	_Icand_mino_1 = "Ethnic Minority" ///
	,labsize(vsmall))
	
	

* By Party ID
coefplot acme_rparty_coalition, bylabel(Coalition Identifiers) || acme_rparty_labor, bylabel(Labor/Greens Identifiers) || ///
	acme_rparty_other, bylabel(Other Party Identifiers) || , $acme_opt byopts(row(1)) ///
	xlabel(-.4 "-40" -.2 "-20" 0 "0" .2 "20") 
	
	///	title("{bf:Figure A7.1}: Average Marginal Component Effects (AMCEs) for Candidate Characteristics," "by Respondent Political Party Affiliation")

graph export "figureA1.png", replace

coefplot acme_rparty_coalition_cp, bylabel(Coalition Identifiers) || acme_rparty_labor_cp, bylabel(Labor/Greens Identifiers) || ///
	acme_rparty_other_cp, bylabel(Other Party Identifiers) || , $acme_opt byopts(row(1)) ///
	xlabel(-.4 "-40" -.2 "-20" 0 "0" .2 "20") 

	///	title("{bf:Figure 7.2}: Average Marginal Component Effects (AMCEs) for Candidate Characteristics," "by Respondent Political Party Affiliation")
	
graph export "figure1.png", replace



* By Minority
coefplot acme_minority_anglo, bylabel(Anglo Respondents) || acme_minority_min, bylabel(Minority Respondents) || ///
	, $acme_opt byopts(row(1)) ///
	xlabel(-.4 "-40" -.2 "-20" 0 "0" .2 "20") 
	
	/// 	title("{bf:Figure A7.2}: Average Marginal Component Effects (AMCEs) for Candidate Characteristics," "by Respondent Ethnic Minority Status")
	
graph export "figureA2.png", replace
	
coefplot acme_minority_anglo_cp, bylabel(Anglo Respondents) || acme_minority_min_cp, bylabel(Minority Respondents) || ///
	, $acme_opt byopts(row(1)) ///
	xlabel(-.4 "-40" -.2 "-20" 0 "0" .2 "20")
	
	///	title("{bf:Figure 7.3}: Average Marginal Component Effects (AMCEs) for Candidate Characteristics," "by Respondent Ethnic Minority Status")
	
graph export "figure2.png", replace


* By Culture
coefplot acme_rculture_anglo, bylabel("Anglo Respondents") || acme_rculture_asian, bylabel("Asian Respondents") || ///
	acme_rculture_other, bylabel("Other Respondents") || , $acme_opt byopts(row(1)) ///
	xlabel(-.4 "-40" -.2 "-20" 0 "0" .2 "20")  
	
	///	title("{bf:Figure A7.3}: Average Marginal Component Effects (AMCEs) for Candidate Characteristics," "by Respondent Ethnic Group")
	
graph export "figureA3.png", replace
	
coefplot acme_rculture_anglo_cp, bylabel("Anglo Respondents") || acme_rculture_asian_cp, bylabel("Asian Respondents") || ///
	acme_rculture_other_cp, bylabel("Other Respondents") || , $acme_opt byopts(row(1)) ///
	xlabel(-.4 "-40" -.2 "-20" 0 "0" .2 "20")  
	
	 ///	title("{bf:Figure 7.4}: Average Marginal Component Effects (AMCEs) for Candidate Characteristics," 	"by Respondent Ethnic Group")
	
graph export "figure3.png", replace


* By COB
coefplot acme_rcob_australia, bylabel(Australian-Born) || acme_rcob_esb, bylabel(ESB-Born) || ///
	acme_rcob_nesb, bylabel(NESB-Born) || , $acme_opt byopts(row(1)) ///
		xlabel(-.4 "-40" -.2 "-20" 0 "0" .2 "20") 

		///		title("{bf:Figure A7.4}: Average Marginal Component Effects (AMCEs) for Candidate Characteristics," "by Respondent Country of Birth Grouping")
		
graph export "figureA4.png", replace
	
coefplot acme_rcob_australia_cp, bylabel(Australian-Born) || acme_rcob_esb_cp, bylabel(ESB-Born) || ///
	acme_rcob_nesb_cp, bylabel(NESB-Born) || , $acme_opt byopts(row(1)) ///
		xlabel(-.4 "-40" -.2 "-20" 0 "0" .2 "20") 
		
		///		title("{bf:Figure 7.5}: Average Marginal Component Effects (AMCEs) for Candidate Characteristics," "by Respondent Country of Birth Grouping")

graph export "figure4.png", replace
	


* By Linked Fate and Culture
coefplot acme_asian_fateyes, bylabel(Asian, Linked Fate) || acme_asian_fateno, bylabel(Asian, No Linked Fate) || ///
	, $acme_opt byopts(row(1)) ///
	xlabel(-1 "-100" -.5 "-50" 0 "0" .5 "50" 1 "100")  
	
	///	title("{bf:Figure A7.5}: Average Marginal Component Effects (AMCEs) for Candidate Characteristics,"	"for Asian Respondents According to Sense of Linked Fate")
	
graph export "figureA5.png", replace

coefplot acme_asian_fateyes_cp, bylabel(Asian, Linked Fate) || acme_asian_fateno_cp, bylabel(Asian, No Linked Fate) || ///
	, $acme_opt byopts(row(1)) ///
	xlabel(-1 "-100" -.5 "-50" 0 "0" .5 "50" 1 "100") 
	
	///	title("{bf:Figure 7.6}: Average Marginal Component Effects (AMCEs) for Candidate Characteristics," "for Asian Respondents According to Sense of Linked Fate")
	
graph export "figure5.png", replace

	
* --------------------------------------- * 
* End of File  
* --------------------------------------- * 
